package com.peitamerchants.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.facebook.react.ReactRootView;
import com.peitamerchants.R;
import com.peitamerchants.application.MainApplication;

/**
 * Created by zy on 2017/5/15.
 */

public class ShopFragment extends Fragment{
    private ReactRootView reactRootView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_shop,container, false);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        reactRootView = (ReactRootView) getView().findViewById(R.id.fragment_shop_rrv);
        Bundle bundle = new Bundle();
        bundle.putString("flag","shop");
        MainApplication.getmReactInstanceManager(bundle, reactRootView);
    }
}
